import axios from 'axios';

const url = process.env.REACT_APP_RECORDS_API_URL;
export const api = {
  getAll: () => axios.get(`${url}/api/v1/records`),
  addData: (data) => axios.post(`${url}/api/v1/records`, data),
  updata: (id, data) => axios.put(`${url}/api/v1/records/${id}`, data),
  delete: (id) => axios.delete(`${url}/api/v1/records/${id}`)
}

export default '';